using System; 
using System.Collections.Generic; 
using System.Text; 
using FluentNHibernate.Mapping;

namespace SHKurzy.Domain {
    
    
    public class ObrazkyMap : ClassMap<Obrazek> {
        
        public ObrazkyMap() {
			Table("Obrazky");
			LazyLoad();
			Id(x => x.ID).GeneratedBy.Identity().Column("ID");
			Map(x => x.Zdroj).Column("Obrazek").Not.Nullable().Length(2147483647);
			HasMany(x => x.OsobySet).KeyColumn("FotoID");
        }
    }
}
